﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmPago.aspx.cs" Inherits="UI.Finanzas.frmPago" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
    {
        width: 98%;
            height: 36px;
        }
    .style2
    {
        }
    .style5
    {
        width: 89px;
    }
    .style7
    {
        }
        .style16
        {
            width: 96%;
        }
        .style25
        {
            width: 132px;
            height: 12px;
        }
        .style27
        {
            width: 89px;
            height: 12px;
        }
        .style28
        {
            width: 188px;
            height: 12px;
        }
        .style34
        {
            height: 12px;
            width: 6px;
        }
        .style35
        {
        }
        .style40
        {
            width: 20px;
            height: 12px;
        }
        .style43
        {
            height: 12px;
        }
        .style44
        {
            width: 132px;
        }
        .style47
        {
            width: 54px;
            height: 12px;
        }
        .style48
        {
            width: 54px;
        }
        .style49
        {
            width: 20px;
        }
        .style50
        {
            width: 101px;
            height: 12px;
        }
        .style52
        {
            width: 6px;
            height: 28px;
        }
        .style53
        {
            width: 101px;
            height: 28px;
        }
        .style54
        {
            width: 132px;
            height: 28px;
        }
        .style55
        {
            width: 54px;
            height: 28px;
        }
        .style56
        {
            width: 20px;
            height: 28px;
        }
        .style57
        {
            height: 28px;
        }
        .style58
        {
            height: 28px;
        }
        .style60
        {
            width: 6px;
            height: 29px;
        }
        .style62
        {
            width: 132px;
            height: 29px;
        }
        .style63
        {
            width: 54px;
            height: 29px;
        }
        .style64
        {
            width: 20px;
            height: 29px;
        }
        .style65
        {
            width: 89px;
            height: 29px;
        }
        .style66
        {
            height: 29px;
        }
        .style72
        {
            width: 188px;
        }
        .style73
        {
            width: 188px;
            height: 28px;
        }
        .style74
        {
            width: 188px;
            height: 29px;
        }
        .style75
        {
            width: 98px;
            height: 12px;
        }
        .style76
        {
            width: 98px;
        }
        .style77
        {
            width: 98px;
            height: 28px;
        }
        .style78
        {
            width: 98px;
            height: 29px;
        }
        .style79
        {
            width: 101px;
        }
        .style80
        {
            width: 101px;
            height: 29px;
        }
        .style82
        {
            width: 112px;
        }
        .style83
        {
            width: 58px;
        }
        .style84
        {
            width: 134px;
        }
    </style>



</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table class="BTabla">
            <tr>
                <td >
                    <table style="width: 866px" >
                        <tr>
                            <td class="filaTabla" colspan="9">
                                <asp:Label ID="Label1" runat="server" Text="Registro de Pagos"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style34">
                            </td>
                            <td class="style50">
                            </td>
                            <td class="style25">
                                
                            </td>
                            <td class="style47">
                            </td>
                            <td class="style40">
                                &nbsp;</td>
                            <td class="style27">
                            </td>
                            <td class="style28">
                            </td>
                            <td class="style75">
                            </td>
                            <td class="style43">
                            </td>
                        </tr>
                        <tr>
                            <td class="style35">
                                &nbsp;</td>
                            <td class="style79">
                                <asp:Label ID="Label2" runat="server" Text="Código Pago"></asp:Label>
                            </td>
                            <td class="style44">
                                <asp:Label ID="lblCodigoPago" runat="server" BorderColor="#666666" 
                                    Font-Size="Large" ForeColor="#FF3300"></asp:Label>
                            </td>
                            <td class="style48">
                                &nbsp;</td>
                            <td class="style49">
                                &nbsp;</td>
                            <td class="style5">
                                &nbsp;</td>
                            <td class="style72">
                                &nbsp;</td>
                            <td class="style76">
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style52">
                            </td>
                            <td class="style53">
                                <asp:Label ID="Label4" runat="server" Text="Codigo Alumno"></asp:Label>
                            </td>
                            <td class="style54">
                                <asp:TextBox ID="txtCodigoAlumno" runat="server"></asp:TextBox>
                            </td>
                            <td class="style55">
                                <asp:Button ID="btnBuscarAlumno" runat="server" CssClass="BotonPlano" 
                                    Text="..." Width="27px" onclick="btnBuscarAlumno_Click" />
                            </td>
                            <td class="style56">
                            </td>
                            <td class="style57" colspan="4">
                                <asp:Label ID="lblNombre" runat="server" style="color: #FF0000"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style60">
                            </td>
                            <td class="style80">
                                <asp:Label ID="Label5" runat="server" Text="Concepto"></asp:Label>
                            </td>
                            <td class="style62">
                                <asp:DropDownList ID="ddlConcepto" runat="server" Width="138px">
                                </asp:DropDownList>
                            </td>
                            <td class="style63">
                                &nbsp;&nbsp;</td>
                            <td class="style64">
                            </td>
                            <td class="style65">
                                <asp:Label ID="Label7" runat="server" Text="Tipo Ingreso"></asp:Label>
                            </td>
                            <td class="style74">
                                <asp:DropDownList ID="ddlTipoIngreso" runat="server" Width="139px">
                                </asp:DropDownList>
                            </td>
                            <td class="style78">
                                <asp:Label ID="Label12" runat="server" Text="Estado"></asp:Label>
                            </td>
                            <td class="style66">
                                <asp:DropDownList ID="ddlEstado" runat="server">
                                    <asp:ListItem Value="1">Activo</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style60">
                            </td>
                            <td class="style80">
                                <asp:Label ID="Label6" runat="server" Text="Periodo"></asp:Label>
                            </td>
                            <td class="style62">
                                <asp:DropDownList ID="ddlPeriodo" runat="server" Width="123px">
                                </asp:DropDownList>
                            </td>
                            <td class="style63">
                            </td>
                            <td class="style64">
                            </td>
                            <td class="style65">
                                <asp:Label ID="Label10" runat="server" Text="N° Cuotas"></asp:Label>
                            </td>
                            <td class="style74">
                                <asp:DropDownList ID="ddlCuotas" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="ddlCuotas_SelectedIndexChanged">
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td class="style78" valign="top">
                                <asp:Label ID="Label8" runat="server" Text="Fecha Pago"></asp:Label>
                            </td>
                            <td rowspan="2" valign="top">
                                <asp:Label ID="lblFechaPago" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style35">
                                &nbsp;</td>
                            <td class="style79" valign="top">
                                <asp:Label ID="Label9" runat="server" Text="Total"></asp:Label>
                            </td>
                            <td class="style44" valign="top">
                                <asp:TextBox ID="txtTotal" runat="server" Height="25px" Width="60px"></asp:TextBox>
                            </td>
                            <td class="style48">
                                &nbsp;</td>
                            <td class="style49">
                                &nbsp;</td>
                            <td class="style5" valign="top">
                                <asp:Label ID="Label11" runat="server" Text="Observación"></asp:Label>
                            </td>
                            <td class="style7" colspan="2">
                                <asp:TextBox ID="txtObservacion" runat="server" Height="50px" 
                                    TextMode="MultiLine" Width="166px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style35" colspan="9" 
                                style="border-bottom-style: solid; border-width: 1px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" class="style2" colspan="9">
                                <asp:Button ID="btnNuevo" runat="server" CssClass="BotonPlano" 
                                    onclick="btnNuevo_Click" Text="Nuevo" />
                                &nbsp;<asp:Button ID="btnGrabar" runat="server" CssClass="BotonPlano" 
                                    onclick="btnGrabar_Click" Text="Grabar" />
                                &nbsp;<asp:Button ID="btnRecalcular" runat="server" CssClass="BotonPlano" 
                                    onclick="btnRecalcular_Click" Text="Recalcular" />
                                &nbsp;<asp:Button ID="btnCancelar" runat="server" CssClass="BotonPlano" 
                                    onclick="btnCancelar_Click" Text="Cancelar" />
                                <asp:Label ID="lblMensaje" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        
    
       
        
            <table class="style1">
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="grvDetallePago" runat="server" AutoGenerateColumns="False" 
                            DataKeyNames="Item,FechaPago" Width="839px" CssClass="grid" Height="26px" 
                            Caption="Detalle Pago" AllowPaging="True">
                            <Columns>
                                <asp:BoundField DataField="Item" HeaderText="Item" />
                                <asp:BoundField DataField="Concepto" HeaderText="Concepto" />
                                <asp:TemplateField HeaderText="Monto">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtMonto" runat="server" Text='<%#Eval("Monto") %>' 
                                            Width="85px"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="FechaPago" DataFormatString="{0:d}" 
                                    HeaderText="Fecha Pago" />
                                <asp:TemplateField HeaderText="Observación">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtObservacionDetalle" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>       
               </ContentTemplate>
    </asp:UpdatePanel>
            
            <br />
        
        

            <asp:Panel ID="Panel2" CssClass="modalPopup" runat="server" Height="284px" 
                Width="526px">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>

                <table style="width: 463px">
                    <tr>
                        
                        <td class="filaTabla" colspan="4">
                            Búsqueda de Alumnos</td>
                    </tr>
                    <tr>
                        <td class="style83">
                            &nbsp;</td>
                        <td class="style82">
                            &nbsp;</td>
                        <td class="style84">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style83">
                            &nbsp;</td>
                        <td class="style82">
                            <asp:Label ID="Label13" runat="server" Text="N° Pre Matricula"></asp:Label>
                        </td>
                        <td class="style84">
                            <asp:TextBox ID="txtMatricula" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnBuscar" runat="server" Text="Buscar" CssClass="BotonPlano" 
                                onclick="btnBuscar_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style83">
                            &nbsp;</td>
                        <td class="style82">
                            &nbsp;</td>
                        <td class="style84">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <br />
                <table class="style16">
                    <tr>
                        <td align="center">
                            <asp:GridView ID="grvModalGrid" runat="server" AutoGenerateColumns="False" 
                                DataKeyNames="nombres,Cod_Alumno" 
                                onselectedindexchanged="grvModalGrid_SelectedIndexChanged" Width="421px" 
                                Height="16px">
                                <Columns>
                                    <asp:CommandField ShowSelectButton="True" />
                                    <asp:BoundField DataField="Cod_Alumno" HeaderText="Codigo" />
                                    <asp:BoundField DataField="nombres" HeaderText="Nombre" />
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:Button ID="Button1" runat="server" CssClass="BotonPlano" 
                                onclick="Button1_Click" Text="Cancelar" />
                            &nbsp;</td>
                    </tr>
                </table>
                </ContentTemplate>

                </asp:UpdatePanel>
                

               
            </asp:Panel>
            <asp:HiddenField ID="btn" runat="server" />
        
       
        <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
             TargetControlID="btn"
              PopupControlID="Panel2"
              
               BackgroundCssClass="modalBackground">
            </asp:ModalPopupExtender>
 


</asp:Content>
